export default [
     // 登录页面
  {
    path: '/login',
    name: 'login',
    component: ()=>import('@/views/login/Login.vue')
  },
  // 注册页面
  {
    path: '/register',
    name: 'register',
    component: ()=>import('@/views/register/Register')
  },
  // 后台首页
  {
    path:'/managehome',
    name: 'managehome',
    meta:{
      title:'首页'
    },
    component: ()=>import('@/views/managehome/Managehome'),
    children:[
      // 首页
      {
        path:'',
        name:'managehomehome',
        component:()=>import('@/views/managehome/main/homeAside/SysHome.vue')
      }
    ]
  },

  // 内容管理
  {
    path:'/contentmanage',
    name: 'contentmanage',
    redirect:'/contentmanage/sysblog',
    meta:{
      title:'内容管理'
    },
    component: ()=>import('@/views/managehome/Managehome'),
    children:[
      // 博客文章
      {
        path:'/contentmanage/sysblog',
        name:'sysblog',
        meta:{
          title:'博客文章'
        },
        component:()=>import('@/views/managehome/main/contentAside/SysBlog.vue')
      },
      // 文章分类
      {
        path:'/contentmanage/syscategory',
        name:'syscategory',
        meta:{
          title:'文章分类'
        },
        component:()=>import('@/views/managehome/main/contentAside/SysCategory.vue')
      },
      // 发布文章
      {
        path:'/contentmanage/sysrecycle',
        name:'sysrecycle',
        meta:{
          title:'文章回收站'
        },
        component:()=>import('@/views/managehome/main/contentAside/RecycleBin.vue')
      }
    ]
  },

  // 界面管理
  {
    path:'/facemanage',
    name:'facemanage',
    redirect:"/facemanage/sysswiper", 
    meta:{
      title:'界面管理'
    },
    component: ()=>import('@/views/managehome/Managehome'),
    children:[
      // 轮播图管理
      {
        path:"/facemanage/sysswiper",
        name:'sysswiper',
        meta:{
          title:'轮播图管理'
        },
        component:()=>import('@/views/managehome/main/facemanage/SysSwiper.vue')
      },
      // 广告图管理
      {
        path:"/facemanage/sysadvise",
        name:'sysadvise',
        meta:{
          title:'广告图管理'
        },
        component:()=>import('@/views/managehome/main/facemanage/SysAdvise.vue')
      }
    ]
  },

  // 用户管理
  {
    path:'/usersmanage',
    name:'usersmanage',
    meta:{
      title:'用户管理'
    },
    component: ()=>import('@/views/managehome/Managehome'),
    children:[
      {
        path:"",
        component: ()=>import('@/views/managehome/main/usermanage/SysUsers.vue')
      }
    ]
  },

  // 评论管理
  {
    path:'/discussmanage',
    name:'discussmanage',
    meta:{
      title:'评论管理'
    },
    component: ()=>import('@/views/managehome/Managehome'),
    children:[
      {
        path:"",
        component: ()=>import('@/views/managehome/main/discussmanage/SysDiscuss.vue')
      }
    ]
  },

  // 个人设置
  {
    path:'/personalset',
    name:'personalset',
    meta:{
      title:'个人设置'
    },
    component: ()=>import('@/views/managehome/Managehome'),
    children:[
      {
        path:"/personalset/baseData",
        component: ()=>import('@/views/managehome/main/personalset/BaseData.vue')
      },
      {
        path:"/personalset/resetHead",
        component: ()=>import('@/views/managehome/main/personalset/ResetHead.vue')
      },
      {
        path:"/personalset/resetPwd",
        component: ()=>import('@/views/managehome/main/personalset/ResetPwd.vue')
      }
    ]
  },
]